package demo07.BatchExecution.commandImp;

import demo07.BatchExecution.command.Command;
import demo07.BatchExecution.object.TV;

public class TVOffCommand implements Command{

	TV tv;

	public TVOffCommand(TV tv) {
		this.tv= tv;
	}

	public void execute() {
		tv.off();
	}

	public void undo() {
		tv.on();
	}

}
